.class public Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;
.super Landroid/app/Service;
.source "DownloadHandlerService.java"


# static fields
.field private static final a:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    const-class v0, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    return-void
.end method

.method private a(Landroid/content/Context;IZ)V
    .locals 2

    const/4 v0, 0x0

    if-eqz p3, :cond_0

    .line 72
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/d;->c()Lcom/ss/android/socialbase/downloader/downloader/d;

    move-result-object p3

    invoke-virtual {p3, p2}, Lcom/ss/android/socialbase/downloader/downloader/d;->l(I)Les/sm0;

    move-result-object p3

    if-eqz p3, :cond_0

    .line 73
    :try_start_0
    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v1

    invoke-virtual {v1, p2}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 74
    invoke-interface {p3, v1}, Les/sm0;->b(Les/zn0;)Z

    move-result p3
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p3

    .line 75
    invoke-virtual {p3}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_0
    const/4 p3, 0x0

    :goto_0
    if-eqz p3, :cond_1

    return-void

    :cond_1
    const/4 p3, 0x1

    .line 76
    invoke-static {p1, p2, p3}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;IZ)I

    move-result p2

    if-nez p2, :cond_2

    const-string p2, "Open Fail!"

    .line 77
    invoke-static {p1, p2, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :cond_2
    return-void
.end method

.method private a(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 5

    const-string v0, "extra_click_download_ids"

    .line 44
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 45
    :try_start_0
    invoke-virtual {p2, v0, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    const-string v4, "extra_from_notification"

    .line 46
    invoke-virtual {p2, v4, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p2

    const-string v4, "android.ss.intent.action.DOWNLOAD_DELETE"

    .line 47
    invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2

    if-eqz p2, :cond_1

    .line 48
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/d;->c()Lcom/ss/android/socialbase/downloader/downloader/d;

    move-result-object p2

    invoke-virtual {p2, v3}, Lcom/ss/android/socialbase/downloader/downloader/d;->l(I)Les/sm0;

    move-result-object p2

    if-nez p2, :cond_0

    .line 49
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->E()Les/sm0;

    move-result-object p2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    if-eqz p2, :cond_1

    .line 50
    :try_start_1
    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 51
    invoke-interface {p2, v1}, Les/sm0;->a(Les/zn0;)Z

    move-result p2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move v2, p2

    goto :goto_0

    :catchall_0
    move-exception p2

    .line 52
    :try_start_2
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_1
    :goto_0
    if-nez v2, :cond_7

    .line 53
    new-instance p2, Landroid/content/Intent;

    const-class v1, Lcom/ss/android/socialbase/appdownloader/view/DownloadTaskDeleteActivity;

    invoke-direct {p2, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 54
    invoke-virtual {p2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/high16 v0, 0x10000000

    .line 55
    invoke-virtual {p2, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 56
    invoke-virtual {p1, p2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 57
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object p1

    invoke-virtual {p1, v3}, Lcom/ss/android/socialbase/downloader/notification/b;->a(I)V

    goto :goto_2

    :cond_2
    const-string v0, "android.ss.intent.action.DOWNLOAD_OPEN"

    .line 58
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 59
    invoke-direct {p0, p1, v3, p2}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Landroid/content/Context;IZ)V

    .line 60
    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/e;->k()Lcom/ss/android/socialbase/appdownloader/e;

    move-result-object p1

    invoke-virtual {p1}, Lcom/ss/android/socialbase/appdownloader/e;->b()Les/vl0;

    move-result-object p1

    .line 61
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p2

    invoke-virtual {p2, v3}, Lcom/ss/android/socialbase/downloader/downloader/g;->i(I)Les/vn0;

    move-result-object p2

    if-nez p1, :cond_3

    if-eqz p2, :cond_4

    .line 62
    :cond_3
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p2

    invoke-virtual {p2, v3}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object p2

    if-eqz p2, :cond_4

    .line 63
    invoke-direct {p0, p1, p2}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Les/vl0;Les/zn0;)V

    .line 64
    :cond_4
    invoke-static {v3}, Les/jo0;->a(I)Les/jo0;

    move-result-object p1

    const-string p2, "notification_click_install_auto_cancel"

    const/4 v0, 0x1

    invoke-virtual {p1, p2, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    if-nez p1, :cond_5

    .line 65
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object p1

    invoke-virtual {p1, v3}, Lcom/ss/android/socialbase/downloader/notification/b;->d(I)Lcom/ss/android/socialbase/downloader/notification/a;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 66
    invoke-virtual {p1}, Lcom/ss/android/socialbase/downloader/notification/a;->g()V

    const/4 p2, -0x3

    const/4 v1, 0x0

    .line 67
    invoke-virtual {p1, p2, v1, v2, v0}, Lcom/ss/android/socialbase/downloader/notification/a;->a(ILcom/ss/android/socialbase/downloader/e/a;ZZ)V

    goto :goto_1

    :cond_5
    const/4 v2, 0x1

    :goto_1
    if-eqz v2, :cond_7

    .line 68
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object p1

    invoke-virtual {p1, v3}, Lcom/ss/android/socialbase/downloader/notification/b;->a(I)V

    goto :goto_2

    :cond_6
    const-string p1, "android.ss.intent.action.DOWNLOAD_HIDE"

    .line 69
    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_7

    .line 70
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object p1

    invoke-virtual {p1, v3}, Lcom/ss/android/socialbase/downloader/notification/b;->a(I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_2

    :catch_0
    move-exception p1

    .line 71
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_7
    :goto_2
    return-void
.end method

.method private a(Les/vl0;Les/zn0;)V
    .locals 3

    if-nez p2, :cond_0

    return-void

    .line 41
    :cond_0
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v0

    invoke-virtual {p2}, Les/zn0;->N0()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->i(I)Les/vn0;

    move-result-object v0

    if-nez p1, :cond_1

    if-nez v0, :cond_1

    return-void

    .line 42
    :cond_1
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->q()Ljava/util/concurrent/ExecutorService;

    move-result-object v1

    .line 43
    new-instance v2, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService$b;

    invoke-direct {v2, p0, p2, p1, v0}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService$b;-><init>(Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;Les/zn0;Les/vl0;Les/vn0;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method private a(Les/zn0;Les/vl0;Les/vn0;)V
    .locals 8

    .line 78
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v1

    .line 79
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v0

    const-string v7, ""

    packed-switch v0, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    .line 80
    :pswitch_1
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(I)V

    if-eqz p2, :cond_0

    const/4 v2, 0x5

    .line 81
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v4

    invoke-virtual {p1}, Les/zn0;->x0()J

    move-result-wide v5

    const-string v3, ""

    move-object v0, p2

    invoke-interface/range {v0 .. v6}, Les/vl0;->a(IILjava/lang/String;IJ)V

    :cond_0
    if-eqz p3, :cond_2

    const/4 p2, 0x5

    .line 82
    invoke-interface {p3, p2, p1, v7, v7}, Les/vn0;->a(ILes/zn0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 83
    :pswitch_2
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->c(I)V

    if-eqz p2, :cond_1

    const/4 v2, 0x6

    .line 84
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v4

    invoke-virtual {p1}, Les/zn0;->x0()J

    move-result-wide v5

    const-string v3, ""

    move-object v0, p2

    invoke-interface/range {v0 .. v6}, Les/vl0;->a(IILjava/lang/String;IJ)V

    :cond_1
    if-eqz p3, :cond_2

    const/4 p2, 0x6

    .line 85
    invoke-interface {p3, p2, p1, v7, v7}, Les/vn0;->a(ILes/zn0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_3
    const/4 p3, 0x1

    .line 86
    invoke-static {p0, v1, p3}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;IZ)I

    .line 87
    invoke-direct {p0, p2, p1}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Les/vl0;Les/zn0;)V

    goto :goto_0

    .line 88
    :pswitch_4
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p1

    invoke-virtual {p1, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->e(I)V

    :cond_2
    :goto_0
    return-void

    :pswitch_data_0
    .packed-switch -0x4
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_4
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method private a(Landroid/content/Intent;)Z
    .locals 12

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    .line 1
    :cond_0
    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    .line 2
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    return v0

    .line 3
    :cond_1
    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/e;->k()Lcom/ss/android/socialbase/appdownloader/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/ss/android/socialbase/appdownloader/e;->b()Les/vl0;

    move-result-object v3

    const-string v2, "extra_click_download_ids"

    .line 4
    invoke-virtual {p1, v2, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    const-string v4, "extra_click_download_type"

    .line 5
    invoke-virtual {p1, v4, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v4

    .line 6
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v5

    invoke-virtual {v5, v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->i(I)Les/vn0;

    move-result-object v10

    const-string v5, "android.ss.intent.action.DOWNLOAD_OPEN"

    .line 7
    invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    const-string v6, "android.ss.intent.action.DOWNLOAD_DELETE"

    const-string v11, ""

    if-nez v5, :cond_12

    .line 8
    invoke-virtual {v1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_12

    const-string v5, "android.ss.intent.action.DOWNLOAD_HIDE"

    .line 9
    invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    goto/16 :goto_3

    :cond_2
    const-string p1, "android.ss.intent.action.DOWNLOAD_CLICK"

    .line 10
    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    const/4 v5, 0x1

    if-eqz p1, :cond_10

    .line 11
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p1

    invoke-virtual {p1, v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object p1

    if-nez p1, :cond_3

    return v0

    .line 12
    :cond_3
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v1

    if-nez v1, :cond_4

    return v0

    :cond_4
    const/4 v6, -0x3

    if-eq v4, v5, :cond_c

    const/4 v7, 0x4

    if-ne v4, v7, :cond_5

    goto :goto_1

    :cond_5
    const/4 v7, 0x2

    if-ne v4, v7, :cond_8

    if-ne v1, v6, :cond_6

    .line 13
    invoke-static {p0, v2, v5}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;IZ)I

    .line 14
    invoke-direct {p0, v3, p1}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Les/vl0;Les/zn0;)V

    goto/16 :goto_2

    .line 15
    :cond_6
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->c(I)V

    if-eqz v3, :cond_7

    const/4 v5, 0x6

    .line 16
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v7

    invoke-virtual {p1}, Les/zn0;->x0()J

    move-result-wide v8

    const-string v6, ""

    move v4, v2

    invoke-interface/range {v3 .. v9}, Les/vl0;->a(IILjava/lang/String;IJ)V

    :cond_7
    if-eqz v10, :cond_f

    const/4 v1, 0x6

    .line 17
    invoke-interface {v10, v1, p1, v11, v11}, Les/vn0;->a(ILes/zn0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    :cond_8
    const/4 v7, 0x3

    if-ne v4, v7, :cond_b

    const/4 v4, -0x1

    if-eq v1, v4, :cond_a

    const/4 v4, -0x4

    if-ne v1, v4, :cond_9

    goto :goto_0

    :cond_9
    if-ne v1, v6, :cond_f

    .line 18
    invoke-static {p0, v2, v5}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;IZ)I

    .line 19
    invoke-direct {p0, v3, p1}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Les/vl0;Les/zn0;)V

    goto :goto_2

    .line 20
    :cond_a
    :goto_0
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->e(I)V

    goto :goto_2

    .line 21
    :cond_b
    invoke-direct {p0, p1, v3, v10}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Les/zn0;Les/vl0;Les/vn0;)V

    goto :goto_2

    .line 22
    :cond_c
    :goto_1
    invoke-static {v1}, Lcom/ss/android/socialbase/downloader/b/f;->b(I)Z

    move-result v4

    if-eqz v4, :cond_e

    .line 23
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(I)V

    if-eqz v3, :cond_d

    const/4 v5, 0x5

    .line 24
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v7

    invoke-virtual {p1}, Les/zn0;->x0()J

    move-result-wide v8

    const-string v6, ""

    move v4, v2

    invoke-interface/range {v3 .. v9}, Les/vl0;->a(IILjava/lang/String;IJ)V

    :cond_d
    if-eqz v10, :cond_f

    const/4 v1, 0x5

    .line 25
    invoke-interface {v10, v1, p1, v11, v11}, Les/vn0;->a(ILes/zn0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    :cond_e
    if-ne v1, v6, :cond_f

    .line 26
    invoke-static {p0, v2, v5}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;IZ)I

    .line 27
    invoke-direct {p0, v3, p1}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Les/vl0;Les/zn0;)V

    .line 28
    :cond_f
    :goto_2
    invoke-virtual {p1}, Les/zn0;->C()Z

    move-result p1

    if-eqz p1, :cond_14

    .line 29
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object p1

    invoke-virtual {p1, v2}, Lcom/ss/android/socialbase/downloader/notification/b;->a(I)V

    .line 30
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object p1

    invoke-virtual {p1, v2}, Lcom/ss/android/socialbase/downloader/notification/b;->e(I)V

    goto :goto_4

    :cond_10
    const-string p1, "android.intent.action.BOOT_COMPLETED"

    .line 31
    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_11

    const-string p1, "android.intent.action.MEDIA_MOUNTED"

    .line 32
    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_14

    .line 33
    :cond_11
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->q()Ljava/util/concurrent/ExecutorService;

    move-result-object p1

    .line 34
    new-instance v0, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService$a;

    invoke-direct {v0, p0}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService$a;-><init>(Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;)V

    invoke-interface {p1, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return v5

    .line 35
    :cond_12
    :goto_3
    invoke-direct {p0, p0, p1}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Landroid/content/Context;Landroid/content/Intent;)V

    .line 36
    invoke-virtual {v1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_14

    .line 37
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p1

    invoke-virtual {p1, v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->h(I)Les/zn0;

    move-result-object p1

    if-eqz p1, :cond_14

    .line 38
    invoke-virtual {p1}, Les/zn0;->p()V

    if-eqz v3, :cond_13

    const/4 v5, 0x7

    .line 39
    invoke-virtual {p1}, Les/zn0;->X0()I

    move-result v7

    invoke-virtual {p1}, Les/zn0;->x0()J

    move-result-wide v8

    const-string v6, ""

    move v4, v2

    invoke-interface/range {v3 .. v9}, Les/vl0;->a(IILjava/lang/String;IJ)V

    :cond_13
    if-eqz v10, :cond_14

    const/4 v1, 0x7

    .line 40
    invoke-interface {v10, v1, p1, v11, v11}, Les/vn0;->a(ILes/zn0;Ljava/lang/String;Ljava/lang/String;)V

    :cond_14
    :goto_4
    return v0
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 0

    const/4 p1, 0x0

    return-object p1
.end method

.method public onCreate()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/app/Service;->onCreate()V

    .line 2
    invoke-static {p0}, Lcom/ss/android/socialbase/downloader/downloader/c;->a(Landroid/content/Context;)V

    return-void
.end method

.method public onStartCommand(Landroid/content/Intent;II)I
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3}, Landroid/app/Service;->onStartCommand(Landroid/content/Intent;II)I

    .line 2
    invoke-static {}, Les/wn0;->a()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 3
    sget-object p2, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a:Ljava/lang/String;

    const-string p3, "onStartCommand"

    invoke-static {p2, p3}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    :cond_0
    invoke-direct {p0, p1}, Lcom/ss/android/socialbase/appdownloader/DownloadHandlerService;->a(Landroid/content/Intent;)Z

    .line 5
    invoke-virtual {p0}, Landroid/app/Service;->stopSelf()V

    const/4 p1, 0x2

    return p1
.end method
